package cn.com.tomato.model;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 t_todo
 * 
 * @author ruoyi
 * @date 2024-08-16
 */
public class ToDo
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 待办集id */
    private Long sid;

    /** 待办名称 */
    private String name;

    /** 分钟数 */
    private int timeDuration;

    /** 类型 默认 common */
    private String type;

    /** 时间类型-默认倒计时 */
    private String timeWay;

    /** 背景 */
    private String background;

    /** 背景颜色 */
    private String color;

    /** 完成后是否隐藏 */
    private Long hideAfterComplete;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    /** 休息时间 */
    private Long restTime;

    /** 循环次数 */
    private Long loopTimes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public int getTimeDuration() {
        return timeDuration;
    }

    public void setTimeDuration(int timeDuration) {
        this.timeDuration = timeDuration;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public String getTimeWay() {
        return timeWay;
    }

    public void setTimeWay(String timeWay) {
        this.timeWay = timeWay;
    }

    public void setBackground(String background)
    {
        this.background = background;
    }

    public String getBackground() 
    {
        return background;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setHideAfterComplete(Long hideAfterComplete) 
    {
        this.hideAfterComplete = hideAfterComplete;
    }

    public Long getHideAfterComplete() 
    {
        return hideAfterComplete;
    }
    public void setCreatetime(Date createtime)
    {
        this.createtime = createtime;
    }

    public Date getCreatetime()
    {
        return createtime;
    }
    public void setRestTime(Long restTime) 
    {
        this.restTime = restTime;
    }

    public Long getRestTime() 
    {
        return restTime;
    }
    public void setLoopTimes(Long loopTimes) 
    {
        this.loopTimes = loopTimes;
    }

    public Long getLoopTimes() 
    {
        return loopTimes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sid", getSid())
            .append("name", getName())
            .append("timeDuration", getTimeDuration())
            .append("type", getType())
            .append("timeWay", getTimeWay())
            .append("background", getBackground())
            .append("color", getColor())
            .append("hideAfterComplete", getHideAfterComplete())
            .append("create", getCreatetime())
            .append("restTime", getRestTime())
            .append("loopTimes", getLoopTimes())
            .toString();
    }
}